package builder;

import lombok.Data;

import javax.net.ssl.HostnameVerifier;

/**
 * @program: DesignModeProject
 * @description: 指挥者
 * @author: Li canzhang
 * @create: 2022-05-15 17:04
 **/
@Data
//动态指定建造流程
public class HouseDirctor {
    private HouseBuilder houseBuilder;


    //如何创建 由指挥者指挥
    public House constructHouse(){
        houseBuilder.buildBasic();
        houseBuilder.buildWalls();
        houseBuilder.buildroofed();
        return houseBuilder.buildHouse();
    }
}
